QuickOPC User's Guide and Reference
Interfaces and Extension Methods
Fundamentals > Components and Objects > Computational Objects > Interfaces and Extension Methods

In QuickOPC.NET, the main methods constituting the functionality of EasyDAClient, EasyAEClient, and EasyUAClient components are actually implementations of IEasyDAClientIEasyAEClient, and IEasyUAClient interfaces, respectively. The remaining methods and method overloads, which simply build upon the core interface methods, are implemented as extension methods on the interface. Also, at many places, arguments and properties that accept one of the IEasyXXClient interfaces, instead of a concrete component.

In most languages (certainly in C# and Visual Basic), this design leads to the same syntax as if all the methods were implemented directly on the core concrete object. The approach that we hace chosen allows to supply a different implementation of the component’s interface where needed, and is currently used for simulation purposes in the browsing controls and dialogs.

See Also